package com.example.ordersystem.model;

import lombok.Data;

@Data
public class PageRequest {

    private Integer currentPage =1;

    private Integer pageSize =4;

    private Integer offset;

    public Integer getOffset() {
        return (currentPage-1) * pageSize;
    }
}
